/*
 * OrderDetailAdapter.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.AgentTitleListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderCertificateInfoListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailAddressListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailGoodsInfoListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailMessageListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailPayInfoListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailProgressListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.OrderDetailShopActiveListItem;

/** 订单详情 */
public class OrderDetailAdapter extends CommonAdapter<DisplayListItem> {

    public OrderDetailAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), OrderDetailProgressListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderDetailAddressListItem.class);
        DisplayItemManager.register(getAdapterTag(), AgentTitleListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderDetailGoodsInfoListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderDetailShopActiveListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderDetailMessageListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderDetailPayInfoListItem.class);
        DisplayItemManager.register(getAdapterTag(), OrderCertificateInfoListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return OrderDetailAdapter.class.getSimpleName();
    }
}
